package com.indexingsystem.system.service;

import java.util.List;

import com.indexingsystem.boss.Vo.ArticlesReqVo;
import com.indexingsystem.boss.Vo.ArticlesTableVo;
import com.indexingsystem.boss.Vo.ArticlesVo;
import com.indexingsystem.boss.common.PagedResult;
import com.indexingsystem.boss.entity.Articles;
import com.indexingsystem.boss.entity.AuditLogs;
import com.indexingsystem.boss.entity.DhTodayStorageInfos;

public interface IArticlesService {
	
	/**
	 * 通过资源id删除文章.
	 * 
	 * @param resId
	 * @return
	 */
	int deleteByPrimaryKey(String resId) throws Exception;

	/**
	 * 批量删除
	 * 
	 * @param resIdList
	 * @return
	 */
	int deleteArticlesByIdBatch(List<String> resIdList) throws Exception;

	/**
	 * 新增文章
	 * 
	 * @param record
	 * @return
	 */
	int insert(Articles record) throws Exception;

	/**
	 * 新增文章信息
	 * 
	 * @param record
	 * @return
	 */
	int insertSelective(Articles record) throws Exception;

	/**
	 * 通过文章id查询文章信息.
	 * 
	 * @param resId
	 * @return
	 */
	Articles selectByPrimaryKey(String resId);

	/**
	 * 修改文章信息.
	 * 
	 * @param record
	 * @return
	 */
	int updateByPrimaryKeySelective(Articles record) throws Exception;

	/**
	 * 文章检索
	 * 
	 * @param record
	 * @return
	 */
	List<ArticlesVo> searchArticlesList(ArticlesVo record);

	/**
	 * 获取总数量
	 * 
	 * @param record
	 * @return
	 */
	Integer getArticlesListCount(ArticlesVo record);

	/**
	 * 分页查询
	 * 
	 * @param record
	 * @return
	 */
	PagedResult<ArticlesTableVo> selectArticlesList(ArticlesVo record);

	/**
	 * 新增文章信息
	 * 
	 * @param record
	 * @return
	 */
	int addArticlesInfo(ArticlesReqVo record, AuditLogs auditLogs, DhTodayStorageInfos dhTodayStorageInfos) throws Exception;

	/**
	 * 修改文章信息
	 * 
	 * @param record
	 * @return
	 */
	int updateArticlesInfo(ArticlesReqVo record) throws Exception;
}